import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/home',
      name: 'home',
      component: HomeView,
    },
    {
      path: '/about',
      name: 'about', 
      component: () => import('../views/AboutView.vue'),
    },
    {
      path: '/',
      name: 'login', 
      component: () => import('../views/Member/LoginView.vue'),
    },
    {
      path: '/add',
      name: 'add', 
      component: () => import('../views/Member/AddView.vue'),
    },
    {
      path: '/show',
      name: 'show', 
      component: () => import('../views/Member/ShowView.vue'),
    },
    {
      path: '/up',
      name: 'up', 
      component: () => import('../views/Member/UpdateView.vue'),
    },
    {
      path: '/lshow',
      name: 'lshow', 
      component: () => import('../views/LevelQuanyi/LevelShow.vue'),
    },
    {
      path: '/ladd',
      name: 'ladd', 
      component: () => import('../views/LevelQuanyi/LevelAdd.vue'),
    },
    {
      path: '/qy',
      name: 'qy', 
      component: () => import('../views/LevelQuanyi/Quanyi.vue'),
    },
    {
      path: '/qadd',
      name: 'qadd', 
      component: () => import('../views/Quanyi/AddQuan.vue'),
    },
    {
      path: '/qshow',
      name: 'qshow', 
      component: () => import('../views/Quanyi/ShowQ.vue'),
    },
    {
      path: '/qup',
      name: 'qup', 
      component: () => import('../views/Quanyi/qupQuan.vue'),
    },

  ],
})

export default router
